package com.aerotechnic.service.implementation;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.aerotechnic.dao.implementation.EventDao;
import com.aerotechnic.service.interfaces.EventBoIn;
import com.dhtmlx.planner.DHXEv;

@Service("EventBo")
@Transactional
public class EventBo implements EventBoIn {

	@Autowired
	private EventDao eventDao;
	@Override
	public List<DHXEv> getAll() {
		// TODO Auto-generated method stub
		return eventDao.getAll();
	}
	@Override
	public void save(DHXEv evt) {
		// TODO Auto-generated method stub
		eventDao.save(evt);
		
	}
	@Override
	public void update(DHXEv evt) {
		// TODO Auto-generated method stub
		eventDao.update(evt);
	}
	@Override
	public void delete(DHXEv event) {
		// TODO Auto-generated method stub
		eventDao.delete(event);
	}

}
